// @ts-ignore
import {callApi} from "../../../callApi.ts";

export async function getNextVideoApi(likes:number)
{
    // const data = {
    //     likes: likes,
    // }
    // const header={
    //     "Content-Type": "application/json"
    // }
    // try {
    //     const response = await axios.post("http://localhost:8000/getVideo/",
    //         data,
    //         {
    //             headers:header
    //         })
    //     return response.data;
    // }catch (e){
    //     console.log(e)
    // }
    const data={
        likes:likes
    }
    const response=await callApi("/getVideo/","POST",data)
    if(response.success)
    {
        return response.data
    }
    return "false"
}